package com.example.hp.week12;

import android.support.v7.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import java.util.logging.Handler;
import java.util.logging.LogRecord;

public class MysqlConnectionActivity extends AppCompatActivity {

    private Handler handler = new Handler() {

        @Override
        public void publish(LogRecord logRecord) {

        }

        @Override
        public void flush() {

        }

        @Override
        public void close() throws SecurityException {

        }
    };

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_mysql_connection);


    }

    //定义事件监听器
    private View.OnClickListener OnClickListener = new View.OnClickListener() {
        @Override
        public void onClick(View view) {



            switch (view.getId()) {
                case R.id.addReaderBnt://增加读者

                    break;
                case R.id.deleteReaderBnt:  //删除

                    break;

                case R.id.updateReaderBnt:   //更新


                    break;
                case R.id.queryReaderBnt:  //按编号查询

                    break;
            }

        }
    };


}